/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

/**
 *
 * @author pelle
 * Edited Steffen
 */
public class Note {
    private int id;
    private String title = "";
    private String text = "";
    private boolean isPublic;
    
    private Person createdPerson = null;
    private String created = "";
    private Person updatedPerson = null;
    private String updated = "";
    
    public Note() { 
        
    }
    
    public Note(int id, String title, String text, boolean isPublic, String created, Person createdPerson, String updated, Person updatedPerson) {
        this.id = id;
        this.title = title;
        this.text = text;
        this.created = created;
        this.isPublic = isPublic;
        this.createdPerson = createdPerson;
        this.updated = updated;
        this.updatedPerson = updatedPerson;
    }
    
    public Note(int id, String title, String text, boolean isPublic, String created, String updated) {
        this.id = id;
        this.title = title;
        this.text = text;
        this.isPublic = isPublic;
        this.created = created;
        this.updated = updated;
    }
    
    public Note(String title, String text, boolean isPublic) {
        this.title = title;
        this.text = text;
        this.isPublic = isPublic;
    }

    /**
     * @return the id
     */
    public int getId() {
        return id;
    }

    /**
     * @param id the id to set
     */
    public void setId(int id) {
        this.id = id;
    }

    /**
     * @return the title
     */
    public String getTitle() {
        return title;
    }

    /**
     * @param title the title to set
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * @return the text
     */
    public String getText() {
        return text;
    }

    /**
     * @param text the text to set
     */
    public void setText(String text) {
        this.text = text;
    }

    /**
     * @return the publicNote
     */
    public boolean isPublic() {
        return isPublic;
    }

    /**
     * @param publicNote the publicNote to set
     */
    public void setPublic(boolean isPublic) {
        this.isPublic = isPublic;
    }

    /**
     * @return the createdPerson
     */
    public Person getCreatedPerson() {
        return createdPerson;
    }

    /**
     * @param createdPerson the createdPerson to set
     */
    public void setCreatedPerson(Person createdPerson) {
        this.createdPerson = createdPerson;
    }

    /**
     * @return the created
     */
    public String getCreated() {
        return created;
    }

    /**
     * @param created the created to set
     */
    public void setCreated(String created) {
        this.created = created;
    }

    /**
     * @return the updatedPerson
     */
    public Person getUpdatedPerson() {
        return updatedPerson;
    }

    /**
     * @param updatedPerson the updatedPerson to set
     */
    public void setUpdatedPerson(Person updatedPerson) {
        this.updatedPerson = updatedPerson;
    }

    /**
     * @return the updated
     */
    public String getUpdated() {
        return updated;
    }

    /**
     * @param updated the updated to set
     */
    public void setUpdated(String updated) {
        this.updated = updated;
    }
    
}
